package com.jy.datapipeline.export.service;

import com.jy.datapipeline.common.commoninterface.EasyExcelExecutionStrategy;
import com.jy.datapipeline.export.entity.ExpRuleModel;

import java.util.List;
import java.util.Map;

public interface ExpRuleService extends EasyExcelExecutionStrategy {
    public List<Map<String,Object>> findExpRuleByList(String dataSourceName,String ruleName,Integer iDisplayStart,
        Integer iDisplayLength);

    public int findExpRuleByCount(String dataSourceName,String ruleName);

    public boolean updateExpRule(ExpRuleModel erm);

    public ExpRuleModel findByRuleName(String ruleName);

    public ExpRuleModel findByRuleId(String ruleId);

    public boolean saveExpRule(ExpRuleModel expRuleModel);
    public boolean deleteExpRule(int id);

    public boolean deleteByRuleId(String ruleId);

    public List<Map<String, Object>> findRuleInfoByTask(String ruleId, int status);

    public List<ExpRuleModel> findByDataSourceId(String dataSourceId);
}
